

#ifndef _UART_COMM_EX_API_H_
#define _UART_COMM_EX_API_H_

#include "uart_comm_frame.h"
#include "uart_comm_struct.h"


#define COMM_BUFF_NUM   1024




typedef enum
{
	CMD_TIME_SET = 0,
	CMD_POWER_OFF = 1,
	CMD_BREAK_SHIELD = 2,
	CMD_LED_BUZZER = 3,
	CMD_RTC_TIME_SET = 4,
	CMD_HEARTBEAT = 5,
	
	CMD_CLEAN_CTRL = 6,
	
	CMD_FRAM_ALL

}ENUM_CMD_FRAME;


extern void nav_comm_frame_init(void);
extern uint8_t comm_frame_analysis(STR_COMM_FRAME *frame[], STR_RINGBUF* bufhdl);
extern void upload_uartcomm_data(uint16_t cmd_id);
extern void upload_ultrasound_data(uint16_t ultra_ID, uint16_t dis_mm);
extern void upload_poweroff_request(uint16_t cnt_down);


extern STR_COMM_FRAME *cmdframGroup[CMD_FRAM_ALL];

#endif


